<?php
class Tedi_String_Similar
{
	protected $_string;
	
	public function __construct($string)
	{
		$this->_string = trim(strtolower($string));
	}
	
	public function compare($string)
	{
		$percent = 0;
		similar_text($this->_string, trim(strtolower($string)), $percent);
		return $percent;
	}
}